For Five Swtiches Stack:

SW1 1/0/53  ──────  SW2 2/0/54
SW2 2/0/53  ──────  SW3 3/0/54
SW3 3/0/53  ──────  SW4 4/0/54
SW4 4/0/53  ──────  SW5 5/0/54
SW5 5/0/53  ──────  SW1 1/0/54

✅ Switch 1
irf-port 1/1 
port group interface Ten-GigabitEthernet1/0/54
# 
irf-port 1/2 
port group interface Ten-GigabitEthernet1/0/53
# 
✅ Switch 2
irf-port 2/1 
port group interface Ten-GigabitEthernet2/0/54
 # 
irf-port 2/2 
port group interface Ten-GigabitEthernet2/0/53
 #

✅ Switch 3
irf-port 3/1
 port group interface Ten-GigabitEthernet3/0/54 
#
 irf-port 3/2 
port group interface Ten-GigabitEthernet3/0/53
 # 
✅ Switch 4
irf-port 4/1 
port group interface Ten-GigabitEthernet4/0/54
 #
 irf-port 4/2 
port group interface Ten-GigabitEthernet4/0/53
 #

✅ Switch 5
irf-port 5/1 
port group interface Ten-GigabitEthernet5/0/54
 # 
irf-port 5/2 
port group interface Ten-GigabitEthernet5/0/53
 #


irf-port-configuration active

interface Ten-GigabitEthernet x/0/53
Shutdown
#
interface Ten-GigabitEthernet x/0/54
Shutdown
#